package com.moss.system.mapper;

import com.moss.common.entity.SysRoleMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMenuMapper {

    /**
     * 批量保存role-menu
     * @param list role-menu
     */
    int insertBatch(@Param("list") List<SysRoleMenuEntity> list);

    /**
     * 删除角色绑定的菜单
     * @param roleId 角色id
     */
    void deleteRoleMenuByRoleId(Long roleId);
}
